package ebusiness.ebusiness.Dao.GoodsDao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import ebusiness.ebusiness.Entity.Classify;
import ebusiness.ebusiness.Entity.Good;
import org.apache.ibatis.annotations.Param;

public interface GoodQuery {
	List<Map<String, Object>> findAllgoods();
	List<Good> getAllGoods();
	Good getGoodByID(@Param("id")int id);

	void addAClassify(@Param("classifyid") int classify_id,@Param("parentid") int classify_parent_id,@Param("description") String classify_description,@Param("createtime") String classify_createtime);
	void modifyClassify(@Param("classifyid") int classify_id,@Param("parentid") int classify_parent_id,@Param("description") String classify_description,@Param("createtime") String classify_createtime);
	void deleteClassify(@Param("id") int Classid);
	List<Classify> getAllclassify();
	List<Classify> getClassifyByPid(@Param("pid")int id);
    List<Classify> getClassifyByid(@Param("id")int id);
}
